<meta charset="UTF-8">
<?php
require 'h.php';
$db->query('set names utf8');
$id=$_GET['bid'];
$sqldel="delete from t_message where id='$id'";
$delrs=$db->query($sqldel);
if($delrs){
     echo "<script language='javascript' type='text/javascript'>";
    echo "alert('删除成功！');";
    echo "window.location.href='index.php';";
    echo "</script>";
} else {
    echo "删除不成功！";
}

